package com.example.insectmanagementsystem.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * 
 * @TableName insect
 */
@TableName(value ="insect")
@Data
public class Insect implements Serializable {
    /**
     * 
     */
    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * 昆虫分类
     */
    private Integer cid;

    /**
     * 昆虫名
     */
    private String name;

    /**
     * 寿命
     */
    private Integer life;

    /**
     * 地域分布
     */
    private String area;

    /**
     * 首次发现时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date discoveryTime;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}